<template>
  <div v-if="xulist">
      <ul>
          <!-- <li v-for='(item,index) in xulist' :key="index">
              {{item.name}}
              <img :src='item.pass'/>
            </li> -->
      </ul>
  </div>
</template>

<script>
export default {
data () {
    return {
        xulist:[]
    }
},
created () { 
     this.$http.get('/api/users/xu').then(({
                    data,
                    config
                }) =>{
                    //解构语法
                    console.log(data);
                    this.xulist=data.data
                }) 
    }
}
</script>

<style scoped>
p{
    width: 1rem;
    height: 1rem;
    background-color: red;
}
</style>